package ooday03;

import ooday03.Animal;

public class Dog extends Animal implements Swim{
    Dog(String name, int age, String color) {
        super(name, age, color);
    }

    void action() {
        System.out.println(name + "看家");
    }

    void eat() {
        System.out.println(name+"吃坤");
    }

    void sayHi() {
        System.out.println(name + age + "岁了" + "他会吃坤");
    }
    public void swim(){
        System.out.println(color+"色的"+age+"岁的小狗"+name+"正在潜水。..");
    }
}
